package cn.prophet.mapper;

import cn.prophet.bean.BjksRecord;
import cn.prophet.bean.BjksRecordExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BjksRecordMapper {
    long countByExample(BjksRecordExample example);

    int deleteByExample(BjksRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BjksRecord record);

    int insertSelective(BjksRecord record);

    List<BjksRecord> selectByExample(BjksRecordExample example);

    BjksRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BjksRecord record, @Param("example") BjksRecordExample example);

    int updateByExample(@Param("record") BjksRecord record, @Param("example") BjksRecordExample example);

    int updateByPrimaryKeySelective(BjksRecord record);

    int updateByPrimaryKey(BjksRecord record);

    List<BjksRecord> selectCurrentDay(@Param("category") Byte category);


    BjksRecord selectCurrentRecord(@Param("category") Byte category);

    List<BjksRecord> getRecordByDate(@Param("category") Byte category, @Param("currentDate") String date);

    List<BjksRecord> getRecordLessDate(@Param("category") Byte category, @Param("currentDate") Date date);


}